'use client';

import React from 'react';

/**
 * 侧边栏品牌区域 - 极简主义版
 * 设计理念：三个能量点 + 微妙动效 = 极简 + 优雅
 */
const SidebarBrand: React.FC = () => {
  return (
    <div className="relative group">
      {/* 主容器 - 玻璃拟态卡片 */}
      <div className="relative overflow-hidden rounded-2xl bg-gradient-to-br from-indigo-50/50 via-purple-50/30 to-pink-50/50 dark:from-indigo-500/10 dark:via-purple-500/5 dark:to-pink-500/10 border border-indigo-200/40 dark:border-white/10 p-4 transition-all duration-500 hover:shadow-lg hover:shadow-indigo-500/20 dark:hover:shadow-indigo-400/20">
        
        {/* 背景光晕 - hover时展开 */}
        <div className="absolute inset-0 bg-gradient-to-r from-indigo-500/0 via-purple-500/5 to-pink-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-700" />
        
        {/* 流动光效 - 微妙的扫光 */}
        <div className="absolute inset-0 -translate-x-full group-hover:translate-x-full transition-transform duration-1000 ease-out bg-gradient-to-r from-transparent via-white/10 to-transparent" />

        {/* 内容区 - 三个能量点居中 */}
        <div className="relative flex items-center justify-center gap-3">
          {/* 能量点1 - 蓝色 */}
          <div className="relative">
            <div className="w-3 h-3 rounded-full bg-indigo-400 dark:bg-indigo-300 animate-pulse shadow-lg shadow-indigo-400/50" 
                 style={{ animationDelay: '0s', animationDuration: '2s' }} />
            {/* 外圈脉冲 */}
            <div className="absolute inset-0 rounded-full border-2 border-indigo-400/30 animate-ping-slow"
                 style={{ animationDuration: '3s', animationDelay: '0s' }} />
          </div>

          {/* 能量点2 - 紫色 */}
          <div className="relative">
            <div className="w-4 h-4 rounded-full bg-purple-400 dark:bg-purple-300 animate-pulse shadow-lg shadow-purple-400/50" 
                 style={{ animationDelay: '0.4s', animationDuration: '2s' }} />
            {/* 外圈脉冲 */}
            <div className="absolute inset-0 rounded-full border-2 border-purple-400/30 animate-ping-slow"
                 style={{ animationDuration: '3s', animationDelay: '0.4s' }} />
          </div>

          {/* 能量点3 - 粉色 */}
          <div className="relative">
            <div className="w-3 h-3 rounded-full bg-pink-400 dark:bg-pink-300 animate-pulse shadow-lg shadow-pink-400/50" 
                 style={{ animationDelay: '0.8s', animationDuration: '2s' }} />
            {/* 外圈脉冲 */}
            <div className="absolute inset-0 rounded-full border-2 border-pink-400/30 animate-ping-slow"
                 style={{ animationDuration: '3s', animationDelay: '0.8s' }} />
          </div>
        </div>

        {/* 底部装饰线 - 渐变进度条效果 */}
        <div className="absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-indigo-500/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
      </div>

      {/* 外圈光晕 - hover时可见 */}
      <div className="absolute -inset-0.5 bg-gradient-to-r from-indigo-400/20 via-purple-400/20 to-pink-400/20 rounded-2xl opacity-0 group-hover:opacity-100 blur-sm transition-opacity duration-500 -z-10" />
    </div>
  );
};

export default SidebarBrand;
